package com.w.tank;

import java.awt.*;

public abstract class GameObject {


    public int x,y;

    protected boolean live = true;

    public boolean isLive() {
        return live;
    }

    public void setLive(boolean live) {
        this.live = live;
    }

    public abstract void paint(Graphics g);

    public void destory(){
        live = false;
        GameControl.INSTANCE.remove(this);
    }
    public abstract int getWidth();
    public abstract int getHeight();


}
